package org.jeecg.modules.demo.crm.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.demo.crm.entity.CAcceptanceRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 验收记录表
 * @Author: jeecg-boot
 * @Date:   2025-06-19
 * @Version: V1.0
 */
public interface CAcceptanceRecordMapper extends BaseMapper<CAcceptanceRecord> {

    @Select("select count(*) from c_acceptance_record  where sub_project_id =#{subProjectId} and acceptance_status !='通过' ")
    Integer notAccepted(@Param("subProjectId") String subProjectId);

    @Select("select count(*) from c_acceptance_record  where sub_project_id =#{subProjectId}  ")
    Integer subProjectCount(@Param("subProjectId") String subProjectId);
}
